home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 22 / PCPP #22.iso / Quake2 / q2source_12_11 / utils3 / qe4 / textures.h < prev    next >
Encoding:
Text File  |  1997-08-10  |  1020 b   |  51 lines

  1.  
  2.  
  3. typedef struct
  4. {
  5.     char    name[32];
  6.     float    shift[2];
  7.     float    rotate;
  8.     float    scale[2];
  9.     int        contents;
  10.     int        flags;
  11.     int        value;
  12. } texdef_t;
  13.  
  14.  
  15. typedef struct
  16. {
  17.     int            width, height;
  18.     int            originy;
  19.     texdef_t    texdef;
  20. } texturewin_t;
  21.  
  22. typedef struct qtexture_s
  23. {
  24.     struct    qtexture_s *next;
  25.     char    name[64];        // includes partial directory and extension
  26.     int        width,  height;
  27.     int        contents;
  28.     int        flags;
  29.     int        value;
  30.     int        texture_number;    // gl bind number
  31.     vec3_t    color;            // for flat shade mode
  32.     qboolean    inuse;        // true = is present on the level
  33. } qtexture_t;
  34.  
  35.  
  36. // a texturename of the form (0 0 0) will
  37. // create a solid color texture
  38.  
  39. void    Texture_Init (void);
  40. void    Texture_Flush (void);
  41. void    Texture_ClearInuse (void);
  42. void    Texture_ShowInuse (void);
  43. void    Texture_ShowDirectory (int menunum);
  44.  
  45. qtexture_t *Texture_ForName (char *name);
  46.  
  47. void    Texture_Init (void);
  48. void    Texture_SetTexture (texdef_t *texdef);
  49.  
  50. void    Texture_SetMode(int iMenu);    // GL_TEXTURE_NEAREST, etc..
  51.